﻿<style type="text/css">
    .knowledge_shangchuanjindu_yulan{width: 100%;    height: 5px;    margin-top: 5px;    border-radius: 2px;    overflow: hidden;}
    .lookrecord{ cursor:pointer;}
    .lookrecord:hover{ color:#39f;}
</style>
<div class="traintask" ng-controller = "courseNoteController">
    <!--筛选区-->
    <div class="traintask_top">
    <div>
                审核状态:</div>
     <div style="height: 29px; border-radius: 3px; border: 1px solid #ddd; padding: 0 5px;
                line-height: 34px; background-color: #fff; cursor: pointer; outline: none;">
        <select style="border: 0px; width: 112px;" ng-model="params.state" ng-change="getList()">
                    <option value="0">全部</option>
                    <option value="1">审核中</option>
                    <option value="2">审核通过</option>
        </select>
        </div>
        <input type="text" placeholder="请输入课程名称" class="traintask_top_sousuo" ng-model="params.courseName" ng-keyup = "findListEnter($event)" style="border: 1px solid #ddd;" />
        <div ng-click="getList()" style="float: none;">
            <svg class="icon" aria-hidden="true"><use xlink:href="#icon-sousuo"></use></svg>
            确认筛选
        </div>
        <div class="traintask_top_right">
            <!--绑定指令(预留) -->
            <div class="traintask_top_add " btncon="btnExamine" btn-obj="btnlist" ng-click="examine()">
                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-tianjia"></use></svg>
                审核</div>               
            <div class="traintask_top_select" btncon="btnDel" btn-obj="btnlist">
                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-shanchu"></use></svg>
                删除</div>
        </div>
    </div>
    <!--内容区-->
    <div class="traintask_main">
        <div class="traintask_main_liebiao">
            <table class="tab">
                <thead>
                    <th> <div class="traintask_main_liebiao_checkbox">
                            <div class="liebiaocheck-box" ng-click="selectAll()" ng-class="{selected:checkAll !=0 && checkAll == List.length}">
                                <!--添加selected为选中样式-->
                                <span class="iconfont"></span>
                            </div>
                            <div class="traintask_main_liebiaoli_xiugai" ng-if="false">
                                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-xiugai"></use></svg>
                            </div>
                        </div></th>
                    <th style="text-align:left;width:20%;">课程名称</th> 
                    <th style=" width:20%;">小节名称</th>    
                    <th>状态</th>
                    <th>审核人</th>
                     <th>笔记来源</th> 
                     <!--<th>时长节点(分钟)</th>-->
                    <th>记录时间</th>
                    <th></th>
                </thead>
                <tbody>
                    <tr ng-if="List.length <=0 && !Loading">
                        <td colspan="8">
                            <center style="margin:100px auto;">
                                <img src="/images/null/null.png" />
                                <div style="font-size:30px;color:#a3a3a3;"  ng-bind="'Null' | T"></div>
                            </center>   
                        </td>
                    </tr>
                    <tr ng-if="Loading">
                        <td  colspan="8"><!--Loading-->
                            <loading isloading="Loading" ng-if="Loading"></loading>  
                        </td>
                    </tr>
                    <tr ng-repeat="item in List">
                        <td class="tdshou"><div class="traintask_main_liebiao_checkbox">
                            <div class="liebiaocheck-box" ng-click="singleCheck(item)" ng-class="{selected:item.isSel}">
                                <!--添加selected为选中样式-->
                                <span class="iconfont"></span>
                            </div>
                            <div class="traintask_main_liebiaoli_xiugai" ng-click="addinfo(item)">
                                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-bianji"></use></svg>
                            </div>
                        </div></td>
                        <td class="tdshou" ng-bind="item.courseName"></td>
                        <td align="center" ng-bind="item.sectionName"></td>
                        <td align="center" ng-bind="item.state==1?'审核通过':'审核中'"></td>
                        <td align="center" ng-bind="item.examineUserName==undefined?'-':item.examineUserName"></td>
                        <td align="center">
                        <img src="/images/avatar.png" ng-src="{{item.userImg}}" onerror="javascript:this.src='/images/avatar.png'" width="36" height="36" class="ng-scope" style="border-radius: 50%;margin-right: 20px;"><span  ng-bind="item.userName"></span>
                        </td>
                       <!-- <td align="center" ng-bind="arrive_timer_format(item.studyTime)"></td>-->
                        <td  align="center" class="tdshou"><div class="traintask_main_liebiao_pxkstime_sj" ng-bind="item.createDate | to_time"  >
                                00:00</div>
                            <div class="traintask_main_liebiao_pxkstime_data" ng-bind="item.createDate | to_date">
                                0000-00-00</div></td>
                        <td class="tdshou" style="position: relative; text-align: center;">                      
                            <div ng-mousemove="item.isToolShow=true" ng-mouseleave ="item.isToolShow = false" >
                                <svg class="icon" aria-hidden="true"><use xlink:href="#icon-ttpodicon1"></use></svg>
                                <ul class="dropdown-menu" ng-if="item.isToolShow" style="position: absolute;top: 10px;z-index: 999;">
                                    <li ng-click="examine(item)">
                                        <svg class="icon" aria-hidden="true"><use xlink:href="#icon-bianji"></use></svg>
                                        审核</li>
                                    <li ng-click="delinfo(item)">
                                        <svg class="icon" aria-hidden="true"><use xlink:href="#icon-shanchu"></use></svg>
                                        删除</li>
                                </ul>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>

        </div>
        <!--分页-->
        <tm-pagination conf="paginationConf"></tm-pagination>
      <!---审核弹框--->
      <div class="loading_bg" style="z-index: 999" ng-if="showForm"></div>
      <div class="new_target_windows ng-scope" ng-if="showForm" style="margin-left: -200px;">
            <div class="ntw_content"> 
                <div class="title">
                    <h1>笔记审核</h1><div class="close"><span ng-click="closeOrOpenForm()">+</span></div>
                    <div class="clear"></div>
                </div>
               <ul class="ulzu">
                   <li>课程名称：<strong ng-bind="item.courseName"></strong></li>
                   <li>小节名称：<strong ng-bind="item.sectionName"></strong></li>
                   <li>
                     <span><i class="iconfont"></i>审核状态：
                     <div class="train_liebioao_header_left_lrtimesx" style="float: right;">
                        <select style="padding: 5px;border: 1px solid #CCC;"  ng-model="item.state">
                            <option value="1">审核通过</option>
                            <option value="0">审核中</option>
                        </select>
                     </div>
                     </span>
                   </li>
                   <li>
                    记录时间：<span ng-bind="item.createDate"></span>
                   </li>
                   <li>
                    记录内容：
                   </li>
                   <li ng-bind="item.noteContent"></li>
               </ul>
          </div>
          <div class="ntw_footer">
                <div class="new_curriculum_bottom_right" ng-click="updateExamine()">
                        <div class="btn queding" style="width:100px;">
                            <span class="ng-scope"><i class="iconfont"></i>确定</span>
                       </div>             
                </div>   
          </div>
    </div>
    </div>         
</div>
